import Main from "../views/Main/index.vue";
// meta: {
//   keepAlive: true//开启路由缓存
// },
const routes = [
  {
    path: "/",
    component: Main,
    redirect: "/market",
    children: [
      {
        path: "/market",
        name: "market",
        component: () => import("@/views/market/index.vue"),
        meta: {
          requireAuth: true, //表示不用验证
        },
      },
      {
        path: "/activity",
        name: "activity",
        component: () => import("@/views/activity/index.vue"),
      },
      {
        path: "/my",
        name: "my",
        component: () => import("@/views/my/index.vue"),
      },
      {
        path: "/team",
        name: "team",
        component: () => import("@/views/team/index.vue"),
      },
      
    ],
  },
  {
    path: "/test",
    name: "test",
    component: () => import("@/views/test/index.vue"),
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index.vue"),
  },
  {
    path: "/register",
    name: "register",
    component: () => import("@/views/register/index.vue"),
  },
  {
    path: "/forgetPassword",
    name: "forgetPassword",
    component: () => import("@/views/forgetPassword/index.vue"),
  },
  {
    path: "/launchPage",
    name: "launchPage",
    component: () => import("@/views/launchPage/index.vue"),
  },
  {
    path: "/article",
    name: "article",
    component: () => import("@/views/article/index.vue"),
  },
  {
    path: "/teamdescription",
    name: "teamdescription",
    component: () => import("@/views/team/teamDescription.vue"),
  },
  {
    path: "/withdrawal",
    name: "withdrawal",
    component: () => import("@/views/withdrawal/index.vue"),
  },
  {
    path: "/recharge",
    name: "recharge",
    component: () => import("@/views/recharge/index.vue"),
  },
  {
    path: "/changepassword",
    name: "changepassword",
    component: () => import("@/views/changePassword/index.vue"),
  },
  {
    path: "/bankcard",
    name: "bankcard",
    component: () => import("@/views/bankCard/index.vue"),
  },
  {
    path: "/onlineservice",
    name: "onlineservice",
    component: () => import("@/views/onlineService/index.vue"),
  },
  {
    path: "/investmentrecord",
    name: "investmentrecord",
    component: () => import("@/views/investmentRecord/index.vue"),
  },
  {
    path: "/accountrecord",
    name: "accountrecord",
    component: () => import("@/views/accountRecord/index.vue"),
  },
  {
    path: "/withdrawalrecord",
    name: "withdrawalrecord",
    component: () => import("@/views/withdrawalRecord/index.vue"),
  },
  {
    path: "/rechargerecord",
    name: "rechargerecord",
    component: () => import("@/views/rechargeRecord/index.vue"),
  },
  {
    path: "*",
    name: "notfound",
    component: () => import("@/components/notfound/index.vue"),
  },

  
];

export default routes;
